package com.example.blogsystem.config;

import com.example.blogsystem.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;


@ControllerAdvice
@Slf4j
public class ExceptionAdvice {
    @ExceptionHandler
    public Result exceptionAdvice(Exception e){
        //TODO
        return Result.fail("未捕获异常!");
    }

}
